<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?php echo $this->_tpl_vars['softtitle'] ?></title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" language="JavaScript">
	var clearcache_filecheck_js_filedirok = "<?php echo $this->_tpl_vars['ST']['clearcache_filecheck_js_filedirok'] ?>";
	var clearcache_filecheck_js_filedirno = "<?php echo $this->_tpl_vars['ST']['clearcache_filecheck_js_filedirno'] ?>";
	var clearcache_filecheck_js_filedirclose = "<?php echo $this->_tpl_vars['ST']['clearcache_filecheck_js_filedirclose'] ?>";
	$(document).ready(function(){
		var h = $(window).height();
		$('#mainwindowhidden').css({height:h-39});
		var options = {
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#filecheck').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	});




	function formverify(formData, jqForm, options) {
		$('#filecheckmanger').removeClass().addClass('formdiv displaynone');
		$('#filecheckloading').removeClass().addClass('formdiv displaytrue');
		$('#submitbotton').attr('disabled','true');
	}

	function saveResponse(options){
		if (options=='true'){
			alert(clearcache_filecheck_js_filedirok);
			resetwindow();
			return false;
		}else if(options=='false'){
			alert(clearcache_filecheck_js_filedirno);
			resetwindow();
			return false;
		}else if(options=='close'){
			alert(clearcache_filecheck_js_filedirclose);
			resetwindow();
			return false;
		}
		
	}

	function resetwindow(){
		parent.closeifram();
	}
</script>
</head>

<body>
	<div class="centerrightwindow">
		<form name="filecheck" id="filecheck" method="post" action="index.php?archive=management&action=clearcache">
			<input type="hidden" name="execute" value="1"/>
			<div id="mainwindowhidden">
				<!--main_start-->
				<div class="suggestion">
					<span class="sugicon"><span class="strong colorgorning2"><?php echo $this->_tpl_vars['ST']['position_title'] ?></span><span class="padding-left5 colorgorningage"><?php echo $this->_tpl_vars['ST']['clearcache_filecheck_mess'] ?></span></span>
				</div>
				<div class="sugtitle-line"></div>
				<div class="formdiv" id="filecheckmanger">
					<table border="0" width="100%">
						<tr class="trstyle2" style="height:60px;line-height: 60px;">
							<td id="center"><?php echo $this->_tpl_vars['ST']['clearcache_filecheck_submit_mess'] ?></td>
						</tr>
					</table>
				</div>
				<div class="formdiv displaynone" id="filecheckloading">
					<table border="0" width="100%">
						<tr class="trstyle2">
							<td id="center"><img alt="" src="templates/images/loading_02.gif" /></td>
						</tr>
						<tr class="trstyle2">
							<td id="center"><?php echo $this->_tpl_vars['ST']['clearcache_filecheck_loading'] ?></td>
						</tr>
					</table>
				</div>
			</div>
			<div id="downbotton">
				<div id="subbotton">
					<table border="0" width="100%">
						<tr id="bottonsubmit">
							<td id="right"><input type="submit" name="Submit" id="submitbotton" value="<?php echo $this->_tpl_vars['ST']['botton_cear'] ?>" class="buttonface" title="<?php echo $this->_tpl_vars['ST']['botton_cear'] ?>"/></td>
							<td id="left" class="padding-left5"><input type="reset" name="reset" value="<?php echo $this->_tpl_vars['ST']['botton_cear_reset'] ?>" onclick="javascript:resetwindow();" class="buttonface"  title="<?php echo $this->_tpl_vars['ST']['botton_cear_reset'] ?>"/></td>
						</tr>
					</table>
				</div>
			</div>
		</form>
	</div>
</body>

</html>
